import java.io.*;
import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
    }
    //Scanner搭配流输出
    public static void main1(String[] args) {
        try(InputStream inputStream = new FileInputStream("d:/dog111.txt")) {
            //Scanner in = new Scanner(System.in);
            int ch = inputStream.read();
            System.out.println(ch);

            Scanner in = new Scanner(inputStream);
            String s = in.next();
            System.out.println(s);
        }catch (IOException e) {
            e.printStackTrace();
        }
    }
}
